<?php if (!(current_user_can('level_0'))){ ?>
<h2>欢迎来到个性化的修特拉DIY生活馆</h2>
<script id='denglu_login_js' type='text/javascript' charset='utf-8'></script>
<script type='text/javascript' charset='utf-8'>
	(function() {
		var _dl_time = new Date().getTime();
		var _dl_login = document.getElementById('denglu_login_js');
		_dl_login.id = _dl_login.id + '_' + _dl_time;
		_dl_login.src = 'http://open.denglu.cc/connect/logincode?appid=94124denri0wmO4TemOMP4Tp0h3k43&v=1.0.2&widget=2&styletype=2&size=308_70&asyn=true&time=' + _dl_time;
	})();
</script>	
<?php } else { ?>

    <br> 您好，<?php
     $u = get_userdata($user_ID);
     $user_name = ($user_ID == 0) ? "欢迎Guest":$u->nickname;
     print($user_name);
    ?>
     <a href="<?php echo wp_logout_url( get_bloginfo('url') ); ?>" title="">退出</a><br />

<?php }?> 